#pragma once

 


//MyFrame - AERO SUPPORT
#include <dwmapi.h>     // DWM APIs
#pragma comment(lib,"dwmapi.lib")




#include "qwindow.h"

namespace micro{
namespace gui{



class QAeroWindow: public QWindow
{


protected:
	bool		m_isAero;
	MARGINS		m_margins;
	bool		IsAeroEnabled() const; 

public:
 
	QAeroWindow();
	~QAeroWindow();
	bool IsAero(){ return m_isAero; }
	
	//template <class T>
	void		DwmSetWindowAttribute( const DWMWINDOWATTRIBUTE attribute, LPCVOID value, int cb);

	void		DwmSetWindowAttribute(  const DWMWINDOWATTRIBUTE attribute, bool value);
	
	
	HRESULT		EnableBlurBehindWindow( bool enable = true,  HRGN region = 0, bool transitionOnMaximized = false);
	HRESULT		ExtendFrame(bool extend);
	HRESULT		ExtendIntoClient( );



};


}}//micro

 